package filehomework;

import java.io.File;
import java.io.IOException;

public class test {
    public static void main(String[] args) throws IOException {
        File file = new File("./src/filehomework/lll.txt");
        if(!file.exists()){
            file.createNewFile();
        }












        /*
        File file =new File("./src/filehomework/demo.txt");
        String name = file.getName();
        System.out.println("name:"+name);
        long len= file.length();
        System.out.println("lengh:"+len);
        boolean ih = file.isHidden();
        boolean cr = file.canRead();
        boolean cw = file.canWrite();
        System.out.println("是否隐藏"+ih);
        System.out.println("是否可读"+cr);
        System.out.println("是否可写"+cw);

         */

    }
}
